
CREATE TABLE [dbo].[CD_Producto](
	[IdProducto] [int] IDENTITY(1,1) NOT NULL,
	[Nombre] [varchar](200) NULL,
	[IdCategoria] [int] NULL,
	[Precio] [decimal](18, 2) NULL,
	[Descripcion] [text] NULL,
 CONSTRAINT [PK_CD_Producto] PRIMARY KEY CLUSTERED 
(
	[IdProducto] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[CD_Producto]  WITH CHECK ADD  CONSTRAINT [FK_CD_Producto_CD_Categoria] FOREIGN KEY([IdCategoria])
REFERENCES [dbo].[CD_Categoria] ([IdCategoria])
GO

ALTER TABLE [dbo].[CD_Producto] CHECK CONSTRAINT [FK_CD_Producto_CD_Categoria]
GO


